package ren.renshuaipeng.auth.domain.auth;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Transient;

import ren.renshuaipeng.auth.domain.SuperBase;

/**
 * ClassName: AuthPermission<br/>
 * Function: xx. <br/>
 * Date: 2015/12/15 11:18<br/>
 *
 * @author 任帅鹏（作者）
 * @version V1.00 （版本号）
 * @see
 * @since JDK 1.8
 */
@Entity
public class AuthPermission extends SuperBase {

	/**
	 * @Fields serialVersionUID : TODO（用一句话描述这个变量表示什么）
	 */
	private static final long serialVersionUID = 1L;
	private String parentId;
	private String authName;
	private String authUrl;
	private Integer authType;
	private boolean authEnable;
	private String description;
	@Transient
	private List<AuthPermission> childList;

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getAuthName() {
		return authName;
	}

	public void setAuthName(String authName) {
		this.authName = authName;
	}

	/**
	 * getter method
	 * 
	 * @return the authUrl
	 */
	public String getAuthUrl() {
		return authUrl;
	}

	/**
	 * setter method
	 * 
	 * @param authUrl
	 *            the authUrl to set
	 */
	public void setAuthUrl(String authUrl) {
		this.authUrl = authUrl;
	}

	/**
	 * getter method
	 * 
	 * @return the authType
	 */

	public Integer getAuthType() {
		return authType;
	}

	/**
	 * setter method
	 * 
	 * @param authType
	 *            the authType to set
	 */

	public void setAuthType(Integer authType) {
		this.authType = authType;
	}

	/**
	 * getter method
	 * 
	 * @return the authEnable
	 */

	public boolean getAuthEnable() {
		return authEnable;
	}

	/**
	 * setter method
	 * 
	 * @param authEnable
	 *            the authEnable to set
	 */

	public void setAuthEnable(boolean authEnable) {
		this.authEnable = authEnable;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * getter method
	 * 
	 * @return the childList
	 */
	public List<AuthPermission> getChildList() {
		return childList;
	}

	/**
	 * setter method
	 * 
	 * @param childList
	 *            the childList to set
	 */
	public void setChildList(List<AuthPermission> childList) {
		this.childList = childList;
	}
}
